package org.example.huweb.config;

import lombok.Data;
import org.example.properties.jwt.JwtProperties;
import org.example.utils.JwtUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ComponentScan(basePackages = "org.example.properties.jwt")

public class jwtConfig {


    /***
     * jwt 工具类 配置
     * @return jwtUtils
     */
    @Bean
    public JwtUtils setJwtProperties(JwtProperties jwtProperties) {
        return new JwtUtils(jwtProperties);
    }
}
